#include <stdio.h>
#include <pthread.h>
void cleanup_func(void*);
int main(void)
{
	pthread_cleanup_push(cleanup_func,(void*)6);
	// 传入非0才会执行
	pthread_cleanup_pop(-1);
	return 0;
}
void cleanup_func(void* v)
{
	printf("I am cleanup_func;i = %d;\n",(int)v);
}
